Mastering Arduino by Jon Hoffman

Mastering Arduino by Jon Hoffman

Author:Jon Hoffman
Language: eng
Format: epub, pdf
Tags: COM067000 - COMPUTERS / Hardware / General, COM017000 - COMPUTERS / Cybernetics, COM051060 - COMPUTERS / Programming Languages / C
Publisher: Packt Publishing
Published: 2018-09-27T14:35:32+00:00


Obstacle avoidance sensor

The emitter on the infrared obstacle avoidance sensor emits infrared radiation and if an obstacle is in front of the sensor, some of the radiation is reflected back and picked up by the receiver. If no object is in front of the sensor then the radiation will dissipate, and the receiver will not receive anything back.

The pins on the sensor are clearly marked with OUT, GND, and VCC, from left to right. The GND pin is connected to the ground rail and the VCC pin is connected to the power rail of the breadboard. The OUT pin is connected directly to a digital pin on the Arduino. If the signal from the OUT pin is LOW, then an object was detected. If the output is HIGH, then no object was detected.

The distance adjuster will adjust the distance that the sensor detects objects. If the adjuster is turned counter-clockwise then the distance will be decreased, and if you turn it clockwise the distance will increase. The sensor will detect objects from 2 to 30 cm.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.